<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Whisper: audio_formats.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Whisper
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">audio_formats.h</div>  </div>
</div>
<div class="contents">
<a href="audio__formats_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef __AUDIO_FORMATS_H__</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define __AUDIO_FORMATS_H__ 1</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a><a class="code" href="namespaceNAudioFormats.html">00004</a> <span class="keyword">namespace </span>NAudioFormats
<a name="l00005"></a>00005 {
<a name="l00006"></a><a class="code" href="namespaceNAudioFormats.html#a3bd6168a4f5f18e84873337a65d3062c">00006</a>         <span class="keyword">enum</span> <a class="code" href="namespaceNAudioFormats.html#a3bd6168a4f5f18e84873337a65d3062c">ECodec</a>
<a name="l00007"></a>00007         {
<a name="l00008"></a><a class="code" href="namespaceNAudioFormats.html#a3bd6168a4f5f18e84873337a65d3062ca6630bb20a91cfa0d81447c3728c90a5d">00008</a>                 <a class="code" href="namespaceNAudioFormats.html#a3bd6168a4f5f18e84873337a65d3062ca6630bb20a91cfa0d81447c3728c90a5d">UNKNOWN_CODEC</a> = 0,
<a name="l00009"></a><a class="code" href="namespaceNAudioFormats.html#a3bd6168a4f5f18e84873337a65d3062ca19a1efbf82326d2a633c5f780cae1710">00009</a>                 <a class="code" href="namespaceNAudioFormats.html#a3bd6168a4f5f18e84873337a65d3062ca19a1efbf82326d2a633c5f780cae1710">PCM</a> = 1,
<a name="l00010"></a><a class="code" href="namespaceNAudioFormats.html#a3bd6168a4f5f18e84873337a65d3062cae17bcd705968bc1a489a17cede5de354">00010</a>                 <a class="code" href="namespaceNAudioFormats.html#a3bd6168a4f5f18e84873337a65d3062cae17bcd705968bc1a489a17cede5de354">ALAW</a>,
<a name="l00011"></a><a class="code" href="namespaceNAudioFormats.html#a3bd6168a4f5f18e84873337a65d3062ca1b3eef3501c07388176f8f5ced6f401e">00011</a>                 <a class="code" href="namespaceNAudioFormats.html#a3bd6168a4f5f18e84873337a65d3062ca1b3eef3501c07388176f8f5ced6f401e">ULAW</a>,
<a name="l00012"></a>00012                 <span class="comment">/* Codec you like */</span>
<a name="l00013"></a>00013         };
<a name="l00014"></a>00014 
<a name="l00015"></a><a class="code" href="namespaceNAudioFormats.html#a8819e97264e4bbfee5d0552ee4c36c7c">00015</a>         <span class="keyword">enum</span> <a class="code" href="namespaceNAudioFormats.html#a8819e97264e4bbfee5d0552ee4c36c7c">ESamplesWidth</a>
<a name="l00016"></a>00016         {
<a name="l00017"></a><a class="code" href="namespaceNAudioFormats.html#a8819e97264e4bbfee5d0552ee4c36c7ca2c9d022a35ecb1aef1a19a2e72808fda">00017</a>                 <a class="code" href="namespaceNAudioFormats.html#a8819e97264e4bbfee5d0552ee4c36c7ca2c9d022a35ecb1aef1a19a2e72808fda">UNKNOWN_WIDTH</a>,
<a name="l00018"></a>00018 
<a name="l00019"></a><a class="code" href="namespaceNAudioFormats.html#a8819e97264e4bbfee5d0552ee4c36c7ca4a3d80a44226379c49ff8e4a4d82b5db">00019</a>                 <a class="code" href="namespaceNAudioFormats.html#a8819e97264e4bbfee5d0552ee4c36c7ca4a3d80a44226379c49ff8e4a4d82b5db">S8</a>,
<a name="l00020"></a><a class="code" href="namespaceNAudioFormats.html#a8819e97264e4bbfee5d0552ee4c36c7ca37ece5dd67be5ab19711cd2e20783dde">00020</a>                 <a class="code" href="namespaceNAudioFormats.html#a8819e97264e4bbfee5d0552ee4c36c7ca37ece5dd67be5ab19711cd2e20783dde">U8</a>,
<a name="l00021"></a>00021 
<a name="l00022"></a><a class="code" href="namespaceNAudioFormats.html#a8819e97264e4bbfee5d0552ee4c36c7cab6b5440d6e7e00c7ef3bc1d19105cf15">00022</a>                 <a class="code" href="namespaceNAudioFormats.html#a8819e97264e4bbfee5d0552ee4c36c7cab6b5440d6e7e00c7ef3bc1d19105cf15">S16LE</a>, <span class="comment">// LE = little endian</span>
<a name="l00023"></a><a class="code" href="namespaceNAudioFormats.html#a8819e97264e4bbfee5d0552ee4c36c7ca93bd7414f8dae274c11d72537e5e225a">00023</a>                 <a class="code" href="namespaceNAudioFormats.html#a8819e97264e4bbfee5d0552ee4c36c7ca93bd7414f8dae274c11d72537e5e225a">S16BE</a>, <span class="comment">// BE = big endian</span>
<a name="l00024"></a><a class="code" href="namespaceNAudioFormats.html#a8819e97264e4bbfee5d0552ee4c36c7ca43e4546036d74cb387d7d9924b20d9aa">00024</a>                 <a class="code" href="namespaceNAudioFormats.html#a8819e97264e4bbfee5d0552ee4c36c7ca43e4546036d74cb387d7d9924b20d9aa">S16HO</a>, <span class="comment">// HO = host order. It is depended from the architecture and</span>
<a name="l00025"></a>00025                        <span class="comment">// can be little or big endian.</span>
<a name="l00026"></a><a class="code" href="namespaceNAudioFormats.html#a8819e97264e4bbfee5d0552ee4c36c7ca2b5d757b3d7e67cfcab0e181853c063a">00026</a>                 <a class="code" href="namespaceNAudioFormats.html#a8819e97264e4bbfee5d0552ee4c36c7ca2b5d757b3d7e67cfcab0e181853c063a">U16LE</a>,
<a name="l00027"></a><a class="code" href="namespaceNAudioFormats.html#a8819e97264e4bbfee5d0552ee4c36c7ca55026974dfc0f6313b4bc1a50e1bcaa5">00027</a>                 <a class="code" href="namespaceNAudioFormats.html#a8819e97264e4bbfee5d0552ee4c36c7ca55026974dfc0f6313b4bc1a50e1bcaa5">U16BE</a>,
<a name="l00028"></a><a class="code" href="namespaceNAudioFormats.html#a8819e97264e4bbfee5d0552ee4c36c7ca3ba717e242948cd54ea8b52e968494d1">00028</a>                 <a class="code" href="namespaceNAudioFormats.html#a8819e97264e4bbfee5d0552ee4c36c7ca3ba717e242948cd54ea8b52e968494d1">U16HO</a>,
<a name="l00029"></a>00029 
<a name="l00030"></a><a class="code" href="namespaceNAudioFormats.html#a8819e97264e4bbfee5d0552ee4c36c7caef2c0d04bbf875dfee090cb29f02bc5d">00030</a>                 <a class="code" href="namespaceNAudioFormats.html#a8819e97264e4bbfee5d0552ee4c36c7caef2c0d04bbf875dfee090cb29f02bc5d">DOUBLE</a>,
<a name="l00031"></a>00031         };
<a name="l00032"></a>00032 
<a name="l00033"></a><a class="code" href="namespaceNAudioFormats.html#a0f5b4d2b68d4ba2b34bac333d4f5f808">00033</a>         <span class="keyword">enum</span> <a class="code" href="namespaceNAudioFormats.html#a0f5b4d2b68d4ba2b34bac333d4f5f808">ESamplesFormat</a>
<a name="l00034"></a>00034         {
<a name="l00035"></a><a class="code" href="namespaceNAudioFormats.html#a0f5b4d2b68d4ba2b34bac333d4f5f808ad821f9642dbf81a228c62d3b7a61ffaf">00035</a>                 <a class="code" href="namespaceNAudioFormats.html#a0f5b4d2b68d4ba2b34bac333d4f5f808ad821f9642dbf81a228c62d3b7a61ffaf">ORIGINAL</a>,
<a name="l00036"></a><a class="code" href="namespaceNAudioFormats.html#a0f5b4d2b68d4ba2b34bac333d4f5f808a0cdbad3db788f96b40c4681c052bd6b7">00036</a>                 <a class="code" href="namespaceNAudioFormats.html#a0f5b4d2b68d4ba2b34bac333d4f5f808a0cdbad3db788f96b40c4681c052bd6b7">MODIFIED</a> <span class="comment">// --&gt; need double samples</span>
<a name="l00037"></a>00037         };
<a name="l00038"></a>00038 
<a name="l00039"></a><a class="code" href="structNAudioFormats_1_1SStreamInfo.html">00039</a>         <span class="keyword">struct </span><a class="code" href="structNAudioFormats_1_1SStreamInfo.html">SStreamInfo</a>
<a name="l00040"></a>00040         {
<a name="l00041"></a><a class="code" href="structNAudioFormats_1_1SStreamInfo.html#a2503410293ff38ee365cf14b0d133253">00041</a>                 <a class="code" href="structNAudioFormats_1_1SStreamInfo.html#a2503410293ff38ee365cf14b0d133253">SStreamInfo</a>(<a class="code" href="namespaceNAudioFormats.html#a8819e97264e4bbfee5d0552ee4c36c7c">NAudioFormats::ESamplesWidth</a> pSamplesWidth = <a class="code" href="namespaceNAudioFormats.html#a8819e97264e4bbfee5d0552ee4c36c7ca2c9d022a35ecb1aef1a19a2e72808fda">UNKNOWN_WIDTH</a>, 
<a name="l00042"></a>00042                                 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pSampleRate = 8000,
<a name="l00043"></a>00043                                 <a class="code" href="namespaceNAudioFormats.html#a3bd6168a4f5f18e84873337a65d3062c">NAudioFormats::ECodec</a> pCodec = <a class="code" href="namespaceNAudioFormats.html#a3bd6168a4f5f18e84873337a65d3062ca6630bb20a91cfa0d81447c3728c90a5d">UNKNOWN_CODEC</a>) : 
<a name="l00044"></a>00044                         <a class="code" href="structNAudioFormats_1_1SStreamInfo.html#af593fa1ab81386196c1e497651ca0e93">mSamplesWidth</a>(pSamplesWidth),
<a name="l00045"></a>00045                         <a class="code" href="structNAudioFormats_1_1SStreamInfo.html#aee8ce68cb4fdb128aa1b2485e96485c5">mSampleRate</a>(pSampleRate),
<a name="l00046"></a>00046                         <a class="code" href="structNAudioFormats_1_1SStreamInfo.html#afc7a47f929f862fc3305dfa29feb3c0b">mCodec</a>(pCodec) { }
<a name="l00047"></a>00047 
<a name="l00048"></a><a class="code" href="structNAudioFormats_1_1SStreamInfo.html#af593fa1ab81386196c1e497651ca0e93">00048</a>                 <a class="code" href="namespaceNAudioFormats.html#a8819e97264e4bbfee5d0552ee4c36c7c">NAudioFormats::ESamplesWidth</a> <a class="code" href="structNAudioFormats_1_1SStreamInfo.html#af593fa1ab81386196c1e497651ca0e93">mSamplesWidth</a>;
<a name="l00049"></a><a class="code" href="structNAudioFormats_1_1SStreamInfo.html#aee8ce68cb4fdb128aa1b2485e96485c5">00049</a>                 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structNAudioFormats_1_1SStreamInfo.html#aee8ce68cb4fdb128aa1b2485e96485c5">mSampleRate</a>;
<a name="l00050"></a><a class="code" href="structNAudioFormats_1_1SStreamInfo.html#afc7a47f929f862fc3305dfa29feb3c0b">00050</a>                 <a class="code" href="namespaceNAudioFormats.html#a3bd6168a4f5f18e84873337a65d3062c">NAudioFormats::ECodec</a> <a class="code" href="structNAudioFormats_1_1SStreamInfo.html#afc7a47f929f862fc3305dfa29feb3c0b">mCodec</a>;
<a name="l00051"></a>00051         };
<a name="l00052"></a>00052 }
<a name="l00053"></a>00053 
<a name="l00054"></a>00054 <span class="preprocessor">#endif </span><span class="comment">/* __AUDIO_FORMATS_H__ */</span>
<a name="l00055"></a>00055 
</pre></div></div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 25 2012 22:00:39 for Whisper by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
